home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18547 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: lyra.csx.cam.ac.uk!lhkc100
  2. From: lhkc100@thor.cam.ac.uk (L.H.K. Chan)
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Re: [Q] Any utility to attack misuse of comment /* */
  5. Date: 21 Apr 1996 13:09:34 GMT
  6. Organization: University of Cambridge, England
  7. Message-ID: <4ldc2e$ovj@lyra.csx.cam.ac.uk>
  8. References: <4l32et$bhm@sun.rhbnc.ac.uk> <Dq0txr.3px@iquest.net>
  9. NNTP-Posting-Host: hammer.thor.cam.ac.uk
  10.  
  11.  
  12. |> Jim Hu <jim@gl.rhbnc.ac.uk> wrote:
  13. |> >Ho, there,
  14. |> >
  15. |> >    I found out gcc and C provided by SGI for irix fail
  16. |> >to find out bug like this
  17. |> >
  18. |> >/*
  19. |> >     statements;
  20. |> >
  21. |> >/*
  22. |> >   comments
  23. |> >*/
  24. |> >
  25. |> >     other_statements;
  26. |> >
  27. |> >
  28. |> >    As you can, */ is missed out in the first case, the compilers
  29. |> >failed to find out this obvious error. Is there any free utility to
  30. |> >attack this bug. This bug can easily appear when you comment/uncomment
  31. |> >frequently.
  32. |> >
  33. |> >    Please help via email or send me a copy if reply here.
  34. |> >
  35. |> >
  36. |> >Jim
  37. |> >
  38. |> >
  39. |> >    My question is, is there any free utility available to attack
  40. |> >
  41.  
  42. But if you use some smart editor like emacs with appropriate lisp script which
  43. colors c++ key words, you will find out this kind of error immediately!  
  44.